<%@ include file="/WEB-INF/views/jsp/include/include.jsp"%>
<html>
<head>
	<%@ include file="/WEB-INF/views/jsp/include/head.jsp"%>
	<link href="<c:url value='resources/css/loginregister.css' />" rel="stylesheet" type="text/css" >
    <title>Hand In Hand</title>
</head>
<body>

	<%@ include file="/WEB-INF/views/jsp/include/header_justlogo.jsp"%>

	<div class="container">
		<div id="loginForm" class="col-xs-4 col-xs-offset-4">
			<form role="form" method="post" action="j_spring_security_check">
				<h2>Please sign in</h2>
				<div class="form-fields">
					<input type="text" class="form-control" name="j_username" placeholder="Email or username">
					<input type="password" class="form-control" name="j_password" placeholder="Password">
				</div>
				<div class="checkbox">
					<label>
						<a href="<spring:url value='/forgotPassword'></spring:url>">
							Did you forget your password?
				        </a>
					</label>
				</div>
				<button class="btn btn-lg btn-primary btn-block" type="submit" >Sign in</button>
			</form>
			
			<label>Don't have an account yet?</label>
			<button class="btn btn-lg btn-primary btn-block" onclick="location.href='<spring:url value="/register"></spring:url>'">Register</button>
			<center><label>or</label></center>
			<form id="fb_signin" action="<c:url value="/signin/facebook"/>" method="POST">
				<input type="hidden" name="scope" value="offline_access,email">
	  			<button type="submit" class="btn btn-lg btn-primary btn-block">
					Login with Facebook
	  			</button>
			</form>
			
<%-- 			<form id="tw_signin" action="<c:url value="/signin/twitter"/>" method="POST"> --%>
<!-- 	  			<button type="submit" class="btn btn-lg btn-primary btn-block"> -->
<!-- 					Login with Twitter -->
<!-- 	  			</button> -->
<!-- 			</form> -->
<%-- 			<button class="btn btn-lg btn-primary btn-block" onclick="location.href='<spring:url value="/signin/facebook"></spring:url>'">Login with Facebook</button> --%>
				
		</div>	
	</div>

	<%@ include file="/WEB-INF/views/jsp/include/footer.jsp"%>


</body>
</html>